import http from "@/utils/request"

export default {
  /**
   * 获取供应商列表
   * @param params
   * @return {AxiosPromise<any>}
   */
  async getProviderListApi(params) {
    return http.get("api/provider/list", params);
  },
  /**
   * 添加商品
   * @param params
   * @return {AxiosPromise<any>}
   */
  async addProviderApi(params) {
    return http.post("api/provider/add", params);
  },
  /**
   * 删除商品
   * @param params
   * @return {AxiosPromise<any>}
   */
  async deleteProviderApi(params) {
    return http.delete("api/provider/delete", params);
  },
  /**
   * 修改商品
   * @param params
   * @return {AxiosPromise<any>}
   */
  async updateProviderApi(params) {
    return http.put("api/provider/update", params);
  }
}
